package com.dbecom.platform.foundation.batch.listener;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.batch.core.SkipListener;

public class LogSkipListener implements SkipListener<Object, Object> {

    private static final Log LOGGER = LogFactory.getLog(LogSkipListener.class);

    public void onSkipInProcess(Object item, Throwable throwable) {
        LOGGER.info("Item was skipped in process: " + item + ".", throwable);
    }

    public void onSkipInRead(Throwable arg0) {
    }

    public void onSkipInWrite(Object arg0, Throwable arg1) {
    }

}
